package com.zack.shop.mvp.http.entity.cart;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.zack.shop.mvp.http.entity.product.Product;

import java.math.BigDecimal;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author 张迁-zhangqian
 * @Data 2018/6/9 下午6:14
 * @Package com.zack.shop.mvp.http.entity.cart
 **/

public class CartBean implements MultiItemEntity {

    private String userId;
    private String productId;
    private int quantity;
//    private Integer checked;
    private Product productVo;

    private boolean isChecked;

    final public static int ITEM = 1;
    final public static int ITEM_WITH_HEADER = 0;


    private int itemType;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public Product getProductVo() {
        return productVo;
    }

    public void setProductVo(Product productVo) {
        this.productVo = productVo;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
